﻿Public Class usuarioVO


    Private _id_usuario As Integer
    Private _nome As String
    Private _senha As String
    Private _masp As String
    Private _secao As secaoVO
    Private _cargo As cargoVO
    Private _status As Boolean
    Private _tipo_usuario As tipo_usuarioVO
    Private _alteracao As DateTime
    '-------------------------------------
    ' MÉTODO CONSTRUTOR SEM PARAMETROS
    '-------------------------------------

    Sub New()
        _id_usuario = Nothing
        _senha = Nothing
        _nome = Nothing
        _masp = Nothing
        _secao = Nothing
        _cargo = Nothing
        _status = Nothing
        _tipo_usuario = Nothing
        _alteracao = Nothing
    End Sub

    '-------------------------------------
    ' MÉTODO CONSTRUTOR COM PARAMETROS
    '-------------------------------------

    Sub New(ByVal id_usuario As Integer, _
            ByVal nome As String, _
            ByVal senha As String, _
            ByVal masp As String, _
            ByVal email As String, _
            ByVal secao As secaoVO, _
            ByVal cargo As cargoVO, _
            ByVal status As Boolean, _
            ByVal alteracao As DateTime)

        _id_usuario = id_usuario
        _nome = nome
        _senha = senha
        _masp = masp
        _secao = secao
        _cargo = cargo
        _status = status
        _tipo_usuario = TIPO_USUARIO
        _alteracao = alteracao

    End Sub

    Public Property ID_USUARIO() As Integer
        Get

            Return _id_usuario

        End Get
        Set(ByVal value As Integer)

            _id_usuario = value

        End Set
    End Property

    Public Property NOME() As String
        Get

            Return _nome

        End Get
        Set(ByVal value As String)

            _nome = value

        End Set
    End Property

    Public Property SENHA() As String
        Get

            Return _senha

        End Get
        Set(ByVal value As String)

            _senha = value

        End Set
    End Property

    Public Property MASP() As String
        Get

            Return _masp

        End Get
        Set(ByVal value As String)

            _masp = value

        End Set
    End Property

    Public Property SECAO() As secaoVO
        Get

            Return _secao

        End Get
        Set(ByVal value As secaoVO)

            _secao = value

        End Set
    End Property


    Public Property CARGO() As cargoVO
        Get

            Return _cargo

        End Get
        Set(ByVal value As cargoVO)

            _cargo = value

        End Set
    End Property


    Public Property STATUS() As Boolean
        Get

            Return _status

        End Get
        Set(ByVal value As Boolean)

            _status = value

        End Set
    End Property


    
    Public Property TIPO_USUARIO() As tipo_usuarioVO

        Get

            Return _tipo_usuario

        End Get
        Set(ByVal value As tipo_usuarioVO)

            _tipo_usuario = value

        End Set
    End Property


    Public Property ALTERACAO() As DateTime
        Get
            Return _alteracao
        End Get
        Set(ByVal value As DateTime)

            _alteracao = value
        End Set
    End Property
End Class
